package com.dongdongshop.mapper;

import com.dongdongshop.pojo.user.TbUser;
import com.dongdongshop.pojo.user.TbUserExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbUserMapper {
    int countByExample(TbUserExample example);

    int deleteByExample(TbUserExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbUser record);

    int insertSelective(TbUser record);

    List<TbUser> selectByExample(TbUserExample example);

    TbUser selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbUser record, @Param("example") TbUserExample example);

    int updateByExample(@Param("record") TbUser record, @Param("example") TbUserExample example);

    int updateByPrimaryKeySelective(TbUser record);

    int updateByPrimaryKey(TbUser record);

    TbUser findName(@Param("username") String username);

    void resetPassword(@Param("username")String username, @Param("salt")String salt, @Param("password")String md5);

    List<TbUser> findThankUser(@Param("s") Date s);

    List<TbUser> findBirthday(@Param("date") Date date);

    List<TbUser> findBirthdays(@Param("s1") String s1);

    List<TbUser> findBirthdayByUser(@Param("month") int monthValue, @Param("day") int dayOfMonth);
}